const {
    message: {
        checkSignature
    }
} = require('../qcloud')

/**
 * 响应 GET 请求（响应微信配置时的签名检查请求）
 */
async function ketang_index(ctx, next) {

    ctx.body = {
        bannerSrc: {
            banner: [{
                imgurl: 'http://localhost:5757/img/banner1.jpg',
                navigator: '',
                class: 'bannerbox',
                id: 1
            },{
                imgurl: 'http://localhost:5757/img/banner2.jpg',
                navigator: '',
                class: 'bannerbox',
                id: 2
            },{
                imgurl: 'http://localhost:5757/img/banner3.jpg',
                navigator: '',
                class: 'bannerbox',
                id: 3
            },{
                imgurl: 'http://localhost:5757/img/banner4.jpg',
                navigator: '',
                class: 'bannerbox',
                id: 4
            }]
        },
        navSrc: {
            nav: [{
                imgurl: 'http://localhost:5757/img/banner1.jpg',
                title: '123'
            },{
                imgurl: 'http://localhost:5757/img/banner2.jpg',
                title: '456'
            },{
                imgurl: 'http://localhost:5757/img/banner3.jpg',
                title: '789'
            }]
        },
        adSrc: {
            ad:  [{
                imgurl: 'http://localhost:5757/img/banner1.jpg',
                navigator: '123'
            },{
                imgurl: 'http://localhost:5757/img/banner2.jpg',
                navigator: '456'
            },{
                imgurl: 'http://localhost:5757/img/banner3.jpg',
                navigator: '789'
            }]
        },
        courseSrc: {
            course_grp: 'courseSrc.ad'
        }
    };
}

module.exports = {
    ketang_index
}